package com.maiji.cloud.service;

import com.baomidou.mybatisplus.service.IService;
import com.maiji.cloud.entities.login.AppUser;
import com.maiji.cloud.entities.login.UploadRecord;
import com.maiji.cloud.request.BaseInputDto;
import com.maiji.cloud.request.SaveURBelongIdReqDto;
import com.maiji.cloud.response.BaseDataResDto;
import com.sun.org.apache.xpath.internal.operations.Bool;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.ArrayList;
import java.util.List;

public interface UploadRecordService extends IService<UploadRecord> {

	/**
	 * 设置资源列表的归属ID
	 * 
	 * @param inputDto
	 * @return
	 */
	public BaseDataResDto<Boolean> saveBelongId(BaseInputDto<ArrayList<SaveURBelongIdReqDto>> inputDto);

	/**
	 * 根据关联id获取图片
	 * @param id
	 * @return
	 */
	List<UploadRecord> getUploudImgs(String id,boolean isMain);

}
